﻿@model IEnumerable<CRMnewm.Tasksnabor>

@{
    ViewBag.Title = "Задачи";
}

<h2>Задачи</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
@*        <th>
            @Html.DisplayNameFor(model => model.Tasks_id)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Subject)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Begin_Tasks)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Limit_Tasks)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.End_Tasks)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Prioriti)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
@*        <td>
            @Html.DisplayFor(modelItem => item.Tasks_id)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Subject)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Begin_Tasks)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Limit_Tasks)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.End_Tasks)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Prioriti)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Tasks_id}) |
            @Html.ActionLink("Details", "Details", new { id=item.Tasks_id}) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Tasks_id})
        </td>
    </tr>
}

</table>
